                        </td>
                    </tr>
                </table>            
            </div>
        </td>
    </tr>
</table>
<script>
$(function(){
    $(".left-menu li").click(function(){
        var storage = window.localStorage; 
        storage.setItem("currentid","summary");
        storage.setItem("profileid","index");
        storage.setItem("userid","index");
        location.href = $(this).attr("src");
    });
    
    $(".left-menu li:eq("+click+")").css("width","274px");
    $(".left-menu li:eq("+click+")").css("background","url(<?=base_url()?>resource/img/menu_on_bg.png)");
    var id = $(".left-menu li:eq("+click+")").attr("id");
    $("#"+id + " a").css("color","white");
    var classs = $("#"+id + " a:eq(0)").attr("class");
    $("."+classs).css("background","url(<?=base_url()?>resource/img/"+classs+"-click.png) no-repeat center");
    
    
    $("th.order").click(function(){
        var ordername = $(this).attr("ordername");
        var src = $(this).children("img").attr("src");
        var order = (src.split("_")[1]).split(".")[0];
        if(order == "desc"){
            order = "asc";
        }else{
            order = "desc";
        }
        $("#ordername").val(ordername+" "+order);
        $("#myform").submit();
    });
});
</script>
</body>
</html>